package com.Interface.dao;

import java.util.List;
import java.util.Map;

import com.Interface.entity.ClassInfo;

public interface ClassInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ClassInfo record);

    int insertSelective(ClassInfo record);

    ClassInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ClassInfo record);

    int updateByPrimaryKey(ClassInfo record);
    
    List<Map<String, Object>> selectByKeyWord(Map<String, Object> param);
    
    List<Map<String, Object>> getUserJoinClassIdName(int user_id);
    
    Map<String, Object> getClassInfobyClassId(Map<String, Object> param);
    
    List<Map<String, Object>> getClassMemberInfo(int class_id);
    
    int addClassMemberCnt(int id);
    
    int reduceClassMemberCnt(int id);
    
    int addClassTopicCnt(int id);
    
    int reduceClassTopicCnt(int id);
    
	List<Map<String, Object>>selectRecommend(Map<String, Object> param);
	
	List<Map<String, Object>>selectFlow(Map<String, Object> param);
	
	List<Map<String, Object>>selectHot(Map<String, Object> param);
	
	List<Map<String, Object>>selectNew(Map<String, Object> param);
	
	List<Map<String, Object>> classhotTopic(int classId);
	
	int getClassCountByKeyWord(Map<String, Object> param);
	
	List<Map<String, Object>> selectchoice(Map<String, Object> param);
	

}